home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Miscellany / Swap.h < prev    next >
Text File  |  1997-06-28  |  165b  |  15 lines

  1. // Swap.h
  2.  
  3. #ifndef Swap_h
  4. #define Swap_h
  5.  
  6. template <class Type>
  7. void Swap( Type& left, Type& right )
  8.   {
  9.     Type out( left );
  10.     left = right;
  11.     right = out;
  12.   }
  13.  
  14. #endif
  15.